package com.cos.services.impl;

import com.cos.dao.EmpDao;
import com.cos.dao.impl.EmpDaoImpl;
import com.cos.dao.impl.EmpDaoImpl2;
import com.cos.services.EmpServices;

/**
 * @author: COS
 * @time: 2021/11/11 10:03
 * @description:
 */
public class EmpServicesImpl implements EmpServices {
    // 只要在代码找那个new了对象
    private EmpDao empdao ;
    @Override
    public void show() {
        //事务开始
        //log
        System.out.println(empdao);
        empdao.show();
        //事务提交
        //事务回滚
    }

    public EmpDao getEmpdao() {
        return empdao;
    }

    public void setEmpdao(EmpDao empdao) {
        this.empdao = empdao;
    }
}
